/* --- SYNCHRONIZED STYLES WITH FICHE FILM --- */
/* Harmonisation avec Fiche film.css */
.similar-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 8px 8px 8px;
    min-height: 220px;
    cursor: pointer;
    transition: none;
    box-sizing: border-box;
    margin-bottom: 16px;
    width: 100%;
}
}
.similar-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
/* Harmonisation avec Fiche film.css */
.similar-card-title {
    font-family: 'Futura', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #181818;
    text-align: center;
    margin-top: 4px;
    margin-bottom: 0;
    min-height: 2.6em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    background: transparent !important;
    box-shadow: none !important;
}
.similar-card-title:hover,
.similar-card-title:focus,
.similar-card-title:active {
    color: #181818 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    filter: none !important;
    outline: none !important;
    text-decoration: none !important;
}
}
.similar-card:hover img {
    transform: scale(1.05);
}
.similar-card-title {
    font-size: 16px !important;
    color: #1A1A1A !important;
    font-family: 'futura-pt', 'Futura Demi', 'Futura PT Demi', 'Futura Std Demi', 'Futura', Arial, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
/* Harmonisation carrousel séries similaires avec fiche film */
.movies-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}
.movies-carousel .carousel-arrow {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    z-index: 10;
    margin: 0 12px;
}
/* Remove hover, filter, and transition effects from carousel card image and series name */
.movie-sub {
    margin-left: 2px;
    color: #888;
    font-size: 14px !important;
    font-family: 'Futura', 'Futura PT', 'Futura Std', Arial, sans-serif !important;
    font-weight: 400;
    margin-bottom: 2px !important;
}
/* Hover gris transparent pour les cartes pistes (div.movie-track-info) */
.movie-track-info:hover {
    background: rgba(0,0,0,0.04) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1.5px 6px 0 rgba(0,0,0,0.04) !important;
    border-radius: 12px !important;
    transition: background 0.2s, box-shadow 0.2s;
}
/* Harmonisation hover lignes pistes avec top 5 front page */
.movie-tracks-table tbody tr:hover {
    background: rgba(0,0,0,0.04);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1.5px 6px 0 rgba(0,0,0,0.04);
    border-radius: 12px;
    transition: background 0.2s, box-shadow 0.2s;
}
/* Nom du compositeur sous chaque piste : gris, 12px, Futura Regular */
.movie-track-artist {
    color: #B0B0B0 !important;
    font-size: 12px !important;
    font-family: 'Futura', 'Futura PT', 'Futura Std', Arial, sans-serif !important;
    font-weight: 400 !important;
    margin-top: 2px;
}
/* Forcer la couleur sur les liens compositeur */
a.movie-track-artist, .movie-track-artist a {
    color: #B0B0B0 !important;
    font-size: 12px !important;
    font-family: 'Futura', 'Futura PT', 'Futura Std', Arial, sans-serif !important;
    font-weight: 400 !important;
    margin-top: 2px;
    text-decoration: none !important;
    cursor: pointer;
}
/* Harmonisation du titre principal fiche série avec fiche film */
.movie-header h1,
.movie-header h1.fw-bold {
    font-size: 48px !important;
    font-family: 'futura-pt', 'Futura Demi', 'Futura PT Demi', 'Futura Std Demi', 'Futura', Arial, sans-serif !important;
    font-weight: 600 !important;
    color: #F4EFEC !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    margin-bottom: 0.5rem !important;
    background: none !important;
    border: none !important;
}
/* Style du titre "À la une" */
.featured-a-la-une-text {
    font-size: 36px !important;
    font-family: 'Futura', 'Futura Std', 'FuturaPT', Arial, sans-serif !important;
    font-weight: 600 !important; /* 100 demibold n'existe pas, 600 = demi-bold */
    color: #F4EFEC !important;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
/* Espace toutes les sections des fiches série */
body .movie-page > section {
    margin-top: 64px !important;
    margin-bottom: 64px !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}
body .movie-page > section:first-child {
    margin-top: 0 !important;
}
body .movie-page > section:last-child {
    margin-bottom: 0 !important;
}
/* Désactive tout effet hover, focus, active, ombre et surelevement sur les cartes du carrousel fiche série */
#series-section .similar-card,
#series-section .similar-card-title {
    box-shadow: none !important;
    background: none !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
    outline: none !important;
}
#series-section .similar-card:hover,
#series-section .similar-card:focus,
#series-section .similar-card:active,
#series-section .similar-card-title:hover,
#series-section .similar-card-title:focus,
#series-section .similar-card-title:active {
    box-shadow: none !important;
    background: none !important;
    transform: none !important;
    filter: none !important;
    outline: none !important;
    cursor: default !important;
}
.carousel-arrow {
    color: #F4EFEC !important;
}
.carousel-arrow:hover {
    color: #700118 !important;
}
.carousel-arrow {
    font-size: 48px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* Force large carousel arrows for fiche série */
.carousel-arrow {
    font-size: 80px !important;
}
/* Correction : propriétés globales supprimées, à placer dans un sélecteur si besoin */
/* Les propriétés display, flex-direction et align-items ont été supprimées car elles sont orphelines. */
.movie-like-btn {
        border-radius: 50%;
        background: transparent;
        color: #700118;
        border: none;
    border: none;
    background: transparent;
    color: rgba(244, 239, 236, 1);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
    position: static;
    margin-top: 12px;
    align-self: center;
    z-index: 5;
    width: 48px;
    height: 48px;
}

.movie-like-btn:hover {
    color: rgba(112, 1, 24, 1);
    transform: scale(1.08);
}

.movie-like-btn.liked {
    color: #700118;
    background: transparent;
    border: none;
    box-shadow: none;
}
.movie-like-btn:focus-visible {
    outline: 2px solid rgba(112, 1, 24, 1);
    outline-offset: 4px;
}

.movie-like-btn i {
    font-size: 1.5rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-like-btn.liked i {
    color: #700118;
} /* Correction : fermeture correcte du bloc .movie-like-btn.liked i */
.text-main { color: #700118 !important; }
.text-dark { color: #1A1A1A !important; }
.text-light { color: #F4EFEC !important; }
.bg-dark { background: #1A1A1A !important; }
.bg-white { background: #FFFFFF !important; }
.border-main { border-color: #700118 !important; }
.border-light { border-color: #F4EFEC !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
/* Correction alignement durée dans toutes les listes de pistes */
.col-duration {
    width: 90px;
    text-align: center;
    white-space: nowrap;
}

.movie-tracks-table td.col-duration {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    height: 74px;
}
/* ==================================================
   Fiche Série Styles
   Styles spécifiques pour la page de détail d'une série
   ================================================== */

/* Les styles de base (Fiche film.css) sont chargés via WordPress */
/* Ce fichier contient uniquement les overrides et styles spécifiques aux séries */

.series-selects {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
}

.series-selects .form-select {
    width: 120px;
    min-width: 100px;
    max-width: 140px;
    height: 40px;
    padding: 8px 28px 8px 12px;
    border: 2px solid #700118;
    border-radius: 6px;
    background: #F4EFEC;
    color: #1A1A1A !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%23700118' stroke-width='2' d='M4 7l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    cursor: pointer;
}

.bg-main {
    background: #F4EFEC !important;
    color: #1A1A1A;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23700118' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.series-selects .form-select:hover {
    border-color: #8B0120;
    background-color: #F4EFEC;
    color: #1A1A1A !important;
}

.series-selects .form-select:focus {
    outline: none;
    border-color: #700118;
    background-color: #F4EFEC;
    color: #1A1A1A !important;
    box-shadow: 0 0 0 3px rgba(112, 1, 24, 0.1);
}

/* Force white background and black text for options */
.series-selects select option,
.series-selects .form-select option {
    background: #F4EFEC !important;
    color: #1A1A1A !important;
    font-weight: normal !important;
    padding: 10px !important;
}

.series-selects select option:hover,
.series-selects .form-select option:hover {
    background: #F4EFEC !important;
    color: #700118 !important;
}

.series-selects .mb-3 {
    margin-bottom: 12px;
}

.series-selects > div:last-child {
    margin-bottom: 0;
}

/* FIX: Comment Avatar sizing */
.comment-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
}

.comment-input-row {
    align-items: flex-start !important;
}


/* Correction : rotation spécifique pour Stranger Things, pas Breaking Bad */
.movie-track-cover {
    transform: none;
}

/* Si c'est Stranger Things, on garde la rotation */
.movie-track-cover.stranger-things {
    transform: rotate(-90deg);
}

/* Si c'est Breaking Bad, on force la rotation à 90deg vers la gauche */
.movie-track-cover.breaking-bad {
    transform: rotate(90deg);
}


/* Centrer le bouton "Afficher plus/moins" */
.movie-page .text-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ==================================================
   RESPONSIVE Design
   ================================================== */

@media (max-width: 1024px) {
    .movie-header h1,
    .movie-header h1.fw-bold {
        font-size: 38px !important;
    }
    
    .series-selects {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .movie-header h1,
    .movie-header h1.fw-bold {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }
    
    .movie-sub {
        font-size: 13px !important;
    }
    
    .series-selects {
        flex-direction: column;
        gap: 10px;
    }
    
    .series-selects select,
    .series-selects .form-select {
        width: 100%;
        max-width: 100%;
    }
    
    .movie-tracks-table {
        font-size: 0.9rem;
    }
    
    .movie-track-number {
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .movie-track-cover-cell {
        padding: 8px;
    }
    
    .movie-track-cover {
        width: 48px;
        height: 48px;
    }
    
    .movie-track-title {
        font-size: 0.9rem;
    }
    
    .movie-track-artist {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .movie-header h1,
    .movie-header h1.fw-bold {
        font-size: 26px !important;
    }
    
    .movie-sub {
        font-size: 12px !important;
    }
    
    .movie-tracks-table {
        font-size: 0.85rem;
    }
    
    .movie-track-number {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    .movie-track-cover {
        width: 40px;
        height: 40px;
    }
    
    .movie-track-title {
        font-size: 0.85rem;
    }
    
    .movie-track-artist {
        font-size: 10px !important;
    }
    
    .comment-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
}

@media (max-width: 600px) {
    .movie-header {
        padding: 0 8px;
        margin-bottom: 18px !important;
    }
    .movie-header h1 {
        font-size: 1.35rem !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        text-align: left !important;
        line-height: 1.15 !important;
    }
    .movie-sub {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        color: #B0B0B0 !important;
        text-align: left !important;
    }
    .movie-poster-wrapper {
        max-width: 160px !important;
        margin: 0 auto 12px auto !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .movie-poster {
        width: 100% !important;
        max-width: 160px !important;
        height: auto !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.25) !important;
    }
    .movie-like-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
        margin-top: 8px !important;
        align-self: center !important;
    }
    .movie-section-label,
    .movie-meta-label {
        font-size: 1rem !important;
        color: #700118 !important;
        margin-bottom: 4px !important;
        text-align: left !important;
    }
    .movie-synopsis {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        color: #F4EFEC !important;
        max-width: 100% !important;
        text-align: left !important;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
    .movie-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }
    .movie-meta-value {
        font-size: 0.85rem !important;
        color: #F4EFEC !important;
        text-align: left !important;
        margin-bottom: 2px !important;
    }
    body .movie-page > section {
        margin-top: 32px !important;
        margin-bottom: 32px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    body .movie-page > section:first-child {
        margin-top: 0 !important;
    }
    body .movie-page > section:last-child {
        margin-bottom: 0 !important;
    }
}
